package com.aos.eap.adapter;

import android.util.SparseBooleanArray;

import com.aos.eap.R;
import com.aos.eap.bean.CapHistoryBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import androidx.annotation.Nullable;


public class CapHistoryListAdapter extends BaseQuickAdapter<CapHistoryBean, BaseViewHolder> {
    private SparseBooleanArray mCheckStates = new SparseBooleanArray();

    public CapHistoryListAdapter(@Nullable List<CapHistoryBean> data) {
        super(R.layout.adapter_cap_history_list, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, final CapHistoryBean item) {
        helper.setText(R.id.tvNo, helper.getAdapterPosition() + 1 + "");
        helper.setText(R.id.tvTime, item.getCreatedTime());
        helper.setText(R.id.tvId, item.getCapId());
    }
}
